# define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	int i = 0;
	printf("Please input two fingers:");
	scanf("%d %d", &a, &b);
	do
	{
		i = a % b;
		a = b;
		b = i;
	} while (i);
	printf("%d", a);
	return 0;
}